package com.hinner.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 用户信息表：驼峰命名转下划线。实体类用驼峰，表字段用下划线
 */
@TableName("sys_menu")
@Data
public class SysMenu extends BaseEntity implements Serializable{


    @TableField(value = "name")
    private String name;
    @TableField(value = "icon")
    private String icon;
    @TableField(value = "parent_id")
    private Long parentId;
    @TableField(value = "order_num")
    private Integer orderNum;
    @TableField(value = "path")
    private String path;
    @TableField(value = "component")
    private String component;
    @TableField(value = "menu_type")
    private String menuType;
    @TableField(value = "perms")
    private String perms;

    @TableField(exist = false)
    private List<SysMenu> childMenus =new ArrayList<>();


}
